{% extends "admin/base.html" %}
{% block title %}订单管理{% endblock %}
{% block content %}
    <div class="pace  pace-inactive">
        <div class="pace-progress" data-progress-text="100%" data-progress="99" style="width: 100%;">
            <div class="pace-progress-inner"></div>
        </div>
        <div class="pace-activity"></div>
    </div>
    <div id="wrapper">
        {% include 'admin/admin_nav.html' %}
        <div id="page-wrapper" class="gray-bg dashbard-1">
            <div class="row border-bottom">
                {% include 'admin/header_nav.html' %}
            </div>
            <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-10">
                    <h2>订单管理</h2>
                    <ol class="breadcrumb">
                        <li>
                            <a href="/admin/home">主页</a>
                        </li>
                        <li>
                            <a>订单管理</a>
                        </li>
                        <li>
                            <strong>订单列表</strong>
                        </li>
                    </ol>
                </div>
                <div class="col-lg-2">

                </div>
            </div>
            <div class="wrapper wrapper-content animated fadeInRight">
                <div class="row">
                    <div class="col-lg-12">
                        <div class="ibox float-e-margins">
                            <div class="ibox-title">
                                <h5>基本
                                    <small>分类，查找</small>
                                </h5>
                                <div class="ibox-tools">
                                    <a class="collapse-link">
                                        <i class="fa fa-chevron-up"></i>
                                    </a>

                                </div>
                            </div>
                            <div class="ibox-content">
                                <style>
                                    th:first-child,
                                    .gradeX td:first-child {
                                        width: 20px;
                                        cursor: pointer;
                                    }

                                    th:first-child input,
                                    .gradeX td:first-child input {
                                        cursor: pointer;
                                    }
                                </style>


                                <form action="javascript:;" method="post" name="login_form" id="login_form">

                                    <table class="table table-striped table-bordered table-hover dataTables-example">
                                        <thead>
                                        <tr>
                                            <th><input type="checkbox" class="i-checks" id="userListCheck"/></th>
                                            <th>ID</th>
                                            <th>用户名</th>
                                            <th>金额</th>
                                            <th>下单时间</th>
                                            <th>状态</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        {% set pay_status={"未认证":'未认证',"submit":"待审核","checked":"已认证"} %}
                                        {% for o in orders %}
                                            <tr class="gradeX">
                                                <td><input type="checkbox" class="i-checks"></td>
                                                <td class="userListId">{{ o.id }}</td>
                                                <td>{{ o.user.name }}</td>
                                                <td>{{ o.money }}</td>
                                                <td>{{ o.create_time }}</td>
                                                <td>
                                                    {% if o.trade_status %}
                                                        已支付
                                                    {% else %}
                                                        未支付
                                                    {% endif %}
                                                </td>
                                            </tr>
                                        {% endfor %}
                                        </tbody>
                                    </table>
                                    <input type="button" class="btn btn-w-m btn-primary delete1" value="删除选中"
                                           data-toggle="modal" data-target="#myModal5" disabled/>


                                    <div class="modal inmodal fade" id="myModal5" tabindex="-1" role="dialog"
                                         aria-hidden="true">
                                        <div class="modal-dialog modal-lg">
                                            <div class="modal-content">
                                                <div class="modal-header">
                                                    <button type="button" class="close" data-dismiss="modal"><span
                                                            aria-hidden="true">&times;</span><span
                                                            class="sr-only">Close</span></button>
                                                    <h4 class="modal-title">删除用户</h4>
                                                    {#                                            <small class="font-bold">删除创意</small>#}
                                                </div>
                                                <div class="modal-body">
                                                    <p class="delete1Content"></p>
                                                </div>

                                                <div class="modal-footer">
                                                    <button type="button" class="btn btn-white deleteUserId"
                                                            data-dismiss="modal">确定
                                                    </button>
                                                    <button type="button" class="btn btn-primary" data-dismiss="modal">
                                                        取消
                                                    </button>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </form>

                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>


{% endblock %}